import request from "./request";

// 登录
export const reqLogin = ({ phone, password }) => {
  return request({
    method: "GET",
    url: `/login/cellphone?phone=${phone}&password=${password}`,
  });
};
// 获取用户详情
export const reqGetUserDetail = (uid) => {
  return request({
    method: "GET",
    url: `/user/detail?uid=${uid}`,
  });
};
// 登出
export const reqLoginout = () => {
  return request({
    method: "GET",
    url: `/logout`,
  });
};
